#pragma once
#include <iostream>
using namespace std;

class String
{
	char* tab;
	unsigned int nb;
	public:
	
	String(unsigned int max=100);
	~String();
	String(const String& );
	char& operator[](unsigned int);
	unsigned int getNb(){return nb;}
	void ajouter_fin(char);
	//char* operator=( const String&);
	//char* operator+(const String&);
	bool operator==(const String&);
	void supprimer(char);
	friend ostream& operator<<(ostream&,const String&);

};
ostream& operator<<(ostream&,const String&);


